/**
  ******************************************************************************
  * @file    
  * @author  
  * @version 
  * @date    
  * @brief   
  ******************************************************************************
	* @attention
  *
  * <h2><center>&copy; COPYRIGHT 2012 STMicroelectronics</center></h2>
  *
  * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  * You may not use this file except in compliance with the License.
  * You may obtain a copy of the License at:
  *
  *        http://www.st.com/software_license_agreement_liberty_v2
  *
  * Unless required by applicable law or agreed to in writing, software 
  * distributed under the License is distributed on an "AS IS" BASIS, 
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
  ******************************************************************************
  */
  
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __EXTI_H
#define __EXTI_H

/* Includes ------------------------------------------------------------------*/
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
#define EXTI_OFFSET              (EXTI_BASE - PERIPH_BASE)
#define EXTI_PR_OFFSET           (EXTI_OFFSET + 0x14)
#define EXTI_PR_PR20_BIT          20
#define EXTI_PR_PR20_BB          (PERIPH_BB_BASE + (EXTI_PR_OFFSET * 32) + (EXTI_PR_PR20_BIT * 4))

#define WAKEUP_INPUT_EXTI_PortSource  EXTI_PortSourceGPIOA
#define WAKEUP_INPUT_EXTI_PinSource   EXTI_PinSource0
#define WAKEUP_INPUT_EXTI_Line        EXTI_Line0

/* Exported functions ------------------------------------------------------- */
void EXTI_Config(void);

#endif /* __EXTI_H */

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
